package com.zjitc.controller;



import com.zjitc.utils.HttpSessionUtils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class BaseController {
    protected String getSessionAdmin(HttpSession session) {
       String admin = (String) session.getAttribute("admin");
        return admin;
    }
    protected void setSessionAdmin(HttpSession session,String admin) {
        session.setAttribute("admin",
                admin);
    }

    protected boolean checkAdmin(HttpSession session){
        return session.getAttribute("admin")!=null;
    }




}
